<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class AuthModel extends Model
{
    use ValidatorModel;

    protected $table = 'auth';

    public static $rules = [
        'name'=>'required|alpha_num|max:10|min:2',
        'pid' => 'required|integer',
        'auth' => 'required',
        'sort' => 'integer',
    ];


    public function lists(array $data)
    {

    }


    public function del($ids)
    {
        return static::destroy($ids);
    }
}